import request from "@/utils/request";

// 获得API 访问日志分页
export function getTableList(data) {
  return request({
    url: "/member/message/page",
    method: "post",
    data
  });
}

// /admin-api/member/message/replyMessage

export function replyMsg(data) {
    return request({
      url: "/member/message/replyMessage",
      method: "post",
      data
    });
}

export function msgDetail({id}) {
    return request({
      url: "/member/message/get",
      method: "post",
      data: {id},
    //   params: {id}
    });
}

// /admin-api/member/message/type/get
export function msgType() {
  return request({
    url: "/member/message/type/get",
    method: "post",
  });
}

// /admin-api/system/message-type/recovery-page
export function recoveryPage(data) {
  return request({
    url: "/system/message-type/recovery-page",
    method: "post",
    data
  });
}

export function recoveryPageReset(data) {
  return request({
    url: "/system/message-type/recovery-reduction",
    method: "put",
    data
  });
}

// /admin-api/member/message/type/delete
export function deleteMsg(data) {
  return request({
    url: "/system/message-type/delete",
    method: "delete",
    params: data
  });
}

// /admin-api/member/message/type/page

export function getMsgTypeList(data) {
  return request({
    url: "/member/message/type/page",
    method: "post",
    data
  });
}

// /admin-api/member/message/type/create

export function createType(data) {
  return request({
    url: "/member/message/type/create",
    method: "post",
    data
  });
}

// /admin-api/member/message/type/update
export function updateType(data) {
  return request({
    url: "/member/message/type/update",
    method: "put",
    data
  });
}

// updateMessageTypeSort
export function updateMessageTypeSort(data) {
  return request({
    url: "/system/message-type/updateMessageTypeSort",
    method: "put",
    data
  });
}